﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cup_PesquisaRevenda.ascx.cs" Inherits="Ecommerce.Web.Admin.Controles.cup_PesquisaRevenda" %>
    
<asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Conditional" runat="server" ChildrenAsTriggers="true">
    <ContentTemplate>
    
        <div id="box_toolbox">
            <div id="div_toolbox_titulo">
                <asp:Label ID="lblTituloMenu" runat="server" Text="Gerenciar Pedidos"></asp:Label>
            </div>
            <div id="div_toolbox_botoes">
                <asp:Button ID="btnPesquisar" runat="server" CssClass="Botao_Toolbox" Text="Pesquisar" />
                <asp:Button ID="btnSalvar" runat="server" CssClass="Botao_Toolbox" 
                    Text="Salvar" onclick="btnSalvar_Click" />
            </div>
        </div>
        
        <asp:HiddenField ID="HiddenField1" runat="server" />

        <div id="header">
    
            <table border="0" cellpadding="3" cellspacing="0" width="100%">
                <tr>
                    <td style="width:130px">
                        <asp:Label ID="lblNumPedido" CssClass="Label_Formulario" runat="server" Text="Nome Revenda:"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtNomeRevenda" CssClass="Textbox" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblDtInicio" CssClass="Label_Formulario" runat="server" Text="CNPJ:"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtCNPJ" CssClass="Textbox" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label1" CssClass="Label_Formulario" runat="server" Text="Código:"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtCodigo" CssClass="Textbox" runat="server"></asp:TextBox>
                    </td>
                </tr>
            </table>

        </div>

        <div id="grid">
            <asp:UpdateProgress ID="UpdateProgress1" runat="server">
                <ProgressTemplate>
                    <span id='loading' class="Gauge_Posicao">
                        <img src="../Imagens/load_icon.gif" border="0" alt="Carregando..." />
                    </span>
                </ProgressTemplate>
            </asp:UpdateProgress>

            <asp:GridView ID="grvRevenda"
                runat="server"
                CellPadding="0"
                CellSpacing="0" 
                AutoGenerateColumns="False" 
                Width="100%" 
                GridLines="None"
                HeaderStyle-CssClass="Table_Header"
                SelectedRowStyle-CssClass="Table_Body_Selected"
                RowStyle-CssClass="Table_Body"
                AlternatingRowStyle-CssClass="Table_Body_Alternate" 
                AllowPaging="True" 
                onrowdatabound="grvRevenda_RowDataBound">
            
                <Columns>  
                    <asp:BoundField DataField="rev_cod_revenda" HeaderStyle-HorizontalAlign="Left" HeaderText="Identificador" ReadOnly="True" SortExpression="CustomerID" />  
                    <asp:BoundField DataField="rev_cod_revenda" HeaderStyle-HorizontalAlign="Left" HeaderText="Razão Social" ReadOnly="True" SortExpression="CustomerID" />  
                    <asp:BoundField DataField="rev_cod_revenda" HeaderStyle-HorizontalAlign="Left" HeaderText="CNPJ" SortExpression="CompanyName" />
                    <asp:BoundField DataField="rev_cod_revenda" HeaderStyle-HorizontalAlign="Left" HeaderText="Contato" SortExpression="CompanyName" />
                    <asp:BoundField DataField="rev_cod_revenda" HeaderStyle-HorizontalAlign="Left" HeaderText="Código" SortExpression="CompanyName" />
                    <asp:buttonfield buttontype="Link" CommandName="Select" headertext="" text="" />
                </Columns>  
            </asp:GridView>
        </div>
        <div>
            
        </div>
    </ContentTemplate>
</asp:UpdatePanel>